package com.deng.framework.core.convert.support;


import com.deng.framework.core.convert.converter.ConverterFactory;
import com.deng.framework.core.convert.converter.ConverterRegistry;

public class DefaultConversionService extends GenericConversionService{

    public DefaultConversionService() {
        addDefaultConverters((ConverterRegistry) this);
    }

    public static void addDefaultConverters(ConverterRegistry converterRegistry) {
        // 添加各类类型转换工厂
        converterRegistry.addConverterFactory((ConverterFactory<?, ?>) new StringToNumberConverterFactory());
    }

}
